package com.yan.factory.abstract_;

import com.yan.factory.method.multi.*;

public class DefaultBlackFontFactory implements FontFactory {
    @Override
    public RegularFont newRegularFont() {
        return new BlackRegularFont(getFontSize());
    }

    @Override
    public BoldFont newBoldFont() {
        return new BlackBoldFont(getFontSize());
    }

    @Override
    public ItalicFont newItalicFont() {
        return new BlackItalicFont(getFontSize());
    }

    @Override
    public Double getFontSize() {
        return 5.0d;
    }
}
